import request from '@/utils/request'

// 查询集装箱类型备案列表
export function listContaBase(query) {
  return request({
    url: '/gManifest/contaBase/list',
    method: 'get',
    params: query
  })
}

// 查询集装箱类型备案详细
export function getContaBase(id) {
  return request({
    url: '/gManifest/contaBase/' + id,
    method: 'get'
  })
}

// 新增集装箱类型备案
export function addContaBase(data) {
  return request({
    url: '/gManifest/contaBase',
    method: 'post',
    data: data
  })
}

// 修改集装箱类型备案
export function updateContaBase(data) {
  return request({
    url: '/gManifest/contaBase',
    method: 'put',
    data: data
  })
}

// 删除集装箱类型备案
export function delContaBase(id) {
  return request({
    url: '/gManifest/contaBase/' + id,
    method: 'delete'
  })
}

// 导出集装箱类型备案
export function exportContaBase(query) {
  return request({
    url: '/gManifest/contaBase/export',
    method: 'get',
    params: query
  })
}


//申报单证
export function declareContas(ids) {
  return request({
    url: '/gManifest/contaBase/declare/' + ids,
    method: 'post'
  })
}


// 检查集装箱是否已经备案过
export function checkContaBase(query) {
  return request({
    url: '/gManifest/contaBase/checkContBase',
    method: 'get',
    params: query
  })
}


// 更新集装箱类型备案
export function superUpdateContaBase(data) {
  return request({
    url: '/gManifest/contaBase/superUpdate',
    method: 'put',
    data: data
  })
}

// 查询集装箱类型备案列表
export function selectList(query) {
  return request({
    url: '/gManifest/contaBase/selectList',
    method: 'get',
    params: query
  })
}